﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;
using ZhimeiSoft.Framework.Server.Connector.BLL.Interface;


namespace ZhimeiSoft.Framework.Server.Connector.Factory
{
    public class BLLFactory
    {
        //private static readonly string path = ConfigurationManager.AppSettings["BLLImpl"];
        private static readonly string path = "ZhimeiSoft.Framework.Server.Connector.BLL";

        public static IUserBLL CreateUserBLL()
        {
            string className = path + ".UserBLL";
            return (IUserBLL)Assembly.Load(path).CreateInstance(className);
        }

        public static ILoginBLL CreateLoginBLL()
        {
            string className = path + ".LoginBLL";
            return (ILoginBLL)Assembly.Load(path).CreateInstance(className);
        }
    }
}
